package com.gzc.demo;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.security.core.Authentication;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@SpringBootApplication
@RestController
public class Application {

    @RequestMapping("/user/me")
    public Authentication user(Authentication user){
        return user;
    }

    public static void main(String[] args){
        SpringApplication.run(Application.class, args);
    }
}
